/**
 * Created by XPL on 2017/4/16.
 */
angular.module('app').directive('appPositionList', ['$sce','cache', function($sce,cache) {
    return {
        restrict: 'A',
        replace: true,
        transclude: true,
        templateUrl: 'view/template/positionList.html',
        scope: {
            data: '=',
            filterObj: '='
        },
        link: function($scope){
            $scope.htmltp_test = $sce.trustAsHtml("<span>111</span>");
            $scope.htmltp = "<span>111</span>";
            $scope.isLogin = cache.get("name");
            console.log($scope.isLogin);
            $scope.collectfn = function(item){
                item.iscollect = !item.iscollect;
            }

        }
    };
}]);